package Books;public class BookList {    private static final int MAX_BOOK_NUM = 10;    private Book[] booklist = new Book[10];    private int bookSize;    public BookList() {        booklist = new Book[]{                new Book("自控力", "王炸", 22.5, "洗脑"),                new Book("谁是凶手？", "李四", 99.5, "悬疑"),                new Book("我的校花老婆", "张三", 44.5, "爱情")        };        bookSize = 3;    }    public Book getBook(int pos) {        if (pos >= MAX_BOOK_NUM) return null;        return booklist[pos];    }    public boolean setBook(int pos, Book book)    {        if(pos >= MAX_BOOK_NUM) return false;        booklist[pos] = book;        return true;    }    public int getBookSize(){        return bookSize;    }    public void setBookSize(int newSize)    {        bookSize = newSize;    }    public int getMaxBookSize(){return MAX_BOOK_NUM;}}